package org.swidgets.base.sinputbox;

public interface RegExpConstants {

	/**
	 * Matching: 		
	 * Non-Matching: 	
	 * Description: 	Only integer number
	 *  
	 */
	public final static String INTEGER = "^\\d*$";
	public final static String INTEGER_ERROR_MESSAGE = "Formato non valido, accettati solo numeri interi";
	
	
	/**
	 * 	Matching Text: 		31/12/75 29/02/00 29/02/04
	 *	Non-Matching Text:	01/13/01 29/02/01 29/02/2004
	 *	Description: 		Matching : dd/MM/yy Leap years compatible Italian style, just for more fun.  
	 */
	
	public final static String DATA ="^(((0[1-9]|[12]\\d|3[01])\\/(0[13578]|1[02])\\/(\\d{2}))|((0[1-9]|[12]\\d|30)\\/(0[13456789]|1[012])\\/(\\d{2}))|((0[1-9]|1\\d|2[0-8])\\/02\\/(\\d{2}))|(29\\/02\\/((0[48]|[2468][048]|[13579][26])|(00))))*$";
	public final static String DATA_ERROR_MESSAGE = "Formato data non valido";
	/**
	 * Matching Text:		12,654 1,987 
	 * Non-Matching Text:	128,2 12, 
	 * Description:			Percentage with 3 number after comma.
	 */
	
	public final static String  PERCENTAGE = "^(100$|^[0-9]{1,2}$|^[0-9]{1,2}\\,[0-9]{1,3})*$";  
	public final static String  PERCENTAGE_ERROR_MESSAGE = "Formato percentuale non valido";   

	/**
	 * Matching Text:		 
	 * Non-Matching Text:	 
	 * Description:			numeri decimali
	 */
	
	public final static String  DECIMAL =          "^\\d*(|,\\d+)$";  
	public final static String  DECIMAL_ERROR_MESSAGE = "Formato decimale non valido"; 
	
}
